Repository navigation
refactor!: move Avatar, Banner and DataTable to MD3 tokens - #5016
Conversation
MikitasK
left a comment
There was a problem hiding this comment.
nicely done 👏
just one comment to consider before merge:
|
@MikitasK let me know when this is ready for another review! |
JKobrynski
left a comment
There was a problem hiding this comment.
LGTM! @satya164 @artus9033 all yours
|
@MikitasK we've got conflicts |
satya164
left a comment
There was a problem hiding this comment.
Review by Claude
See the inline comments. (via Claude, verify if it makes sense)
There was a problem hiding this comment.
🔵 Needs a closer look
Visual verification covers only web, leaving shared avatar rounding, typography, and animation changes awaiting human validation on iOS and Android with before-and-after checks and a nearby unaffected case.
No open issues 🎉
3 resolved since last review
Review effort: Balanced
|
/review |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Apex Sentinel: 2 new findings on 98a6ad9. The verdict and the full list are in the summary comment.
|
|
There was a problem hiding this comment.
🔵 Needs a closer look
Web-only validation leaves the cross-platform visual changes without iOS or Android before-and-after evidence, requiring human checks of image rounding, typography at increased font scale, colors, and motion.
No open issues 🎉
Review effort: Balanced
|
@lukewalczak Yes, switched |
Updated typography styles for DataTable and Avatar components to use specific font variants. Adjusted border styles for DataTable components. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
🔵 Needs a closer look
Human assessment is needed because variant promotion can use the wrapper’s theme instead of the child’s explicit theme, causing runtime errors in table titles and pagination labels.
No open issues 🎉
1 resolved since last review
Review effort: Balanced
|
/review |
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
satya164 has stepped away from Paper. The PR now follows this review: no StyleSheet.flatten and no color parsing, and a custom backgroundColor takes a matching color. lukewalczak and Doberjohn approved the current head.
Add `alt`, `fallback` and `sourceKey` to `Avatar.Image`. A failed image shows `fallback`, and a changed `sourceKey` retries a function source. An avatar without a label is not its own focus stop. A labelled avatar gets `role="img"`, and a described host hides its fallback content. `Avatar.Text` shows at most two graphemes. Rebuilt on top of callstack#5016, which owns the avatar colors, so the automatic contrast handling from earlier revisions is dropped. Co-authored-by: Norbert Kamieński <norbert.kamienski@callstack.com>


Motivation
Moves Avatar, Banner and DataTable onto the MD3 color, shape, motion and typography tokens, the first PR for #4990. The migration guide covers each change.
primaryContainerwithonPrimaryContainercontent by default; a custombackgroundColorneeds a matchingcolor, nowColorValue.Avatar.TextusestitleMedium.labelMedium,bodyMediumandbodySmalltexts,outlineVariantborders, the standard curve for the sort icon.Related issue
Part of #4990
Screenshots / Videos
banner.mp4
Test plan
yarn typecheck,yarn lintandyarn test; the Avatar, Banner and DataTable screens on web.